import request from '@/utils/request'

// 查询心情天气列表
export function listMoodWeather(query) {
  return request({
    url: '/moodWeather/moodWeather/list',
    method: 'get',
    params: query
  })
}

// 查询心情天气详细
export function getMoodWeather(id) {
  return request({
    url: '/moodWeather/moodWeather/' + id,
    method: 'get'
  })
}

// 新增心情天气
export function addMoodWeather(data) {
  return request({
    url: '/moodWeather/moodWeather',
    method: 'post',
    data: data
  })
}

// 修改心情天气
export function updateMoodWeather(data) {
  return request({
    url: '/moodWeather/moodWeather',
    method: 'put',
    data: data
  })
}

// 删除心情天气
export function delMoodWeather(id) {
  return request({
    url: '/moodWeather/moodWeather/' + id,
    method: 'delete'
  })
}
